package com.cn.yugan.Activity;

import android.content.Intent;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.cn.yugan.mobile.R;

public class InnerMessageListActivity extends AppCompatActivity {
    private int type;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_inner_message_list);

        init();
        initactionbar();
    }

    private void initactionbar() {
        ActionBar actionbar = getSupportActionBar();
        switch (type) {
            case 0:
                actionbar.setTitle("艾特我的");
                break;
            case 1:
                actionbar.setTitle("回复我的");
                break;
            case 2:
                actionbar.setTitle("私信我的");
                break;
        }
    }

    private void init() {
        Intent intent = getIntent();
        type = intent.getIntExtra("type", 0);
    }


}
